package code.framework.android.view;

public abstract class ViewWithStateHandler {

	protected boolean selected;

	public void toggle() {
		selected = !selected;
		if (selected) {
			setSelected();
		} else {
			setUnSelected();
		}
	}

	protected abstract void setSelected();

	protected abstract void setUnSelected();

}
